﻿using System;
using KingsSharp.Core.Data;

namespace CRM.Admin.Contracts.Dto.Sys
{
    public class MenuNodeDto : IAddDto, IEditDto<Guid>
    {
        /// <summary>
        /// 菜单主键编码
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 菜单说明
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 菜单唯一编码
        /// </summary>
        public string MenuCode { get; set; }

        /// <summary>
        /// 菜单URL相对路径
        /// </summary>
        public string MenuURL { get; set; }

        /// <summary>
        /// 菜单打开方式
        /// </summary>
        public string MenuURLTarget { get; set; }

        /// <summary>
        /// 图标大小
        /// </summary>
        public string IconText { get; set; }

        /// <summary>
        /// 图标颜色
        /// </summary>
        public string IconColor { get; set; }

        /// <summary>
        /// 菜单排序
        /// </summary>
        public int Order { get; set; }

        /// <summary>
        /// 菜单类型 如系统菜单、自定义菜单
        /// </summary>
        public short Type { get; set; }

        /// <summary>
        /// 区域
        /// </summary>
        public string Area { get; set; }

        /// <summary>
        /// 控制器
        /// </summary>
        public string Controller { get; set; }

        /// <summary>
        /// 视图方法
        /// </summary>
        public string Action { get; set; }

        /// <summary>
        /// 父ID
        /// </summary>
        public Guid? Pid { get; set; }

        /// <summary>
        /// 父目录
        /// </summary>
        public string PName { get; set; }

        /// <summary>
        /// 菜单功能权限组
        /// </summary>
        public string ActionPower { get; set; }
    }
}
